package com.yic.module.device.enums;

import com.yic.framework.common.exception.ErrorCode;

/**
 * MES 错误码枚举类
 * <p>
 * 设备管理，使用 1_021_000_000 段
 */
public interface ErrorCodeConstants {

    // ==========  设备分类信息模块 1_021_000_000 ==========
    ErrorCode DEVICE_CATEGORY_NOT_EXISTS = new ErrorCode(1_021_000_000, "分类信息不存在");
    ErrorCode DEVICE_CATEGORY_PARENT_ERROR = new ErrorCode(1_021_000_001, "不能设置自己为父分类");
    ErrorCode DEVICE_CATEGORY_PARENT_NOT_EXITS = new ErrorCode(1_021_000_002,"父级分类不存在");
    ErrorCode DEVICE_CATEGORY_NOT_ENABLE = new ErrorCode(1_021_000_003, "分类({})不处于开启状态，不允许选择");
    ErrorCode DEVICE_CATEGORY_NAME_DUPLICATE = new ErrorCode(1_021_000_004, "已经存在该名字的分类");
    ErrorCode DEVICE_CATEGORY_CODE_DUPLICATE = new ErrorCode(1_021_000_005, "已经存在该代码的分类");
    ErrorCode DEVICE_CATEGORY_EXITS_CHILDREN = new ErrorCode(1_021_000_006, "存在子分类，无法删除");
    ErrorCode ITEM_CATEGORY_PARENT_IS_CHILD = new ErrorCode(1_021_000_007, "不能设置自己的子分类为父分类");

    // ==========  设备分类信息模块 1_021_001_000 ==========
    ErrorCode DEVICE_NOT_EXISTS = new ErrorCode(1_021_001_000, "设备信息不存在");
    ErrorCode DEVICE_CODE_EXISTS = new ErrorCode(1_021_001_001, "设备代码已存在");

    // ==========  设备报修信息模块 1_021_002_000 ==========
    ErrorCode FAULT_NOT_EXISTS = new ErrorCode(1_021_002_000, "设备报修信息不存在");

    ErrorCode FAULT_NOT_CHANGE = new ErrorCode(1_021_002_001, "当前单据不允许变更");

    ErrorCode FAULT_NOT_ACCEPT = new ErrorCode(1_021_002_002, "当前工单不允许接单");

    ErrorCode FAULT_NOT_CONFIRM = new ErrorCode(1_021_002_003, "当前工单不允许确认");

    ErrorCode FAULT_NOT_ME = new ErrorCode(1_021_002_004, "无法变更非本人报修工单");

    ErrorCode FAULT_NOT_HANDLE = new ErrorCode(1_021_002_005, "当前工单不允许处理");

    ErrorCode FAULT_CODE_EXISTS = new ErrorCode(1_021_002_006, "报修单号已存在");

    ErrorCode FAULT_EXISTS = new ErrorCode(1_021_002_007, "设备正在维修中，无需重复申请");

    // ==========  设备履历模块 1_021_003_000 ==========
    ErrorCode RESUME_NOT_EXISTS = new ErrorCode(1_021_003_000, "设备履历信息不存在");

    // ==========  设备报修处理模块 1_021_004_000 ==========
    ErrorCode FAULT_HANDLE_NOT_EXISTS = new ErrorCode(1_021_004_000, "设备报修处理信息不存在");

    // ==========  领用申请模块 1_021_005_000 ==========
    ErrorCode RECEIVE_NOT_EXISTS = new ErrorCode(1_021_005_000, "领用申请信息不存在");

    ErrorCode RECEIVED_DEVICE = new ErrorCode(1_021_005_001, "设备已被领用");

    ErrorCode RECEIVED_NOT_CHANGE = new ErrorCode(1_021_005_002, "当前单据不允许变更");

    ErrorCode RECEIVE_CODE_EXISTS = new ErrorCode(1_021_005_003, "领用单号已存在");

    // ==========  退还申请模块 1_021_006_000 ==========
    ErrorCode REFUND_NOT_EXISTS = new ErrorCode(1_021_006_000, "退还申请信息不存在");
    ErrorCode REFUND_NOT_ALLOW = new ErrorCode(1_021_006_001, "不允许被退还");

    ErrorCode REFUND_CODE_EXISTS = new ErrorCode(1_021_006_002, "退还单号已存在");
    ErrorCode REFUND_NOT_CHANGE = new ErrorCode(1_021_006_003, "当前单据不允许变更");

    // ========== 巡检计划 1_021_007_000 ==========
    ErrorCode INSPECTION_PLAN_NOT_EXISTS = new ErrorCode(1_021_007_000, "巡检计划不存在");
    ErrorCode AVALID_INSPECTION_UPDATE_TASK = new ErrorCode(1_021_007_001, "请先删除巡检任务后再更新！");
    ErrorCode AVALID_INSPECTION_DELETE_TASK = new ErrorCode(1_021_007_002, "请先删除巡检任务后再删除！");

    // ========== 检查项 1_021_008_000 ==========
    ErrorCode INSPECTION_PLAN_ENTRY_NOT_EXISTS = new ErrorCode(1_021_008_000, "检查项不存在");
    // ========== 巡检计划与设备关联 1_021_009_000 ==========
    ErrorCode INSPECTION_PLAN_DEVICE_NOT_EXISTS = new ErrorCode(1_021_009_000, "巡检计划与设备关联不存在");

    // ========== 设备计划消息管理 1_021_010_000 ==========
    ErrorCode INSPECTION_PLAN_MESSAGE_NOT_EXISTS = new ErrorCode(1_021_010_000, "设备计划消息管理不存在");
    // ========== 巡检计划与任务关联 1_021_011_000 ==========
    ErrorCode INSPECTION_PLAN_JOB_NOT_EXISTS = new ErrorCode(1_021_011_000, "巡检计划与任务关联不存在");
    ErrorCode JOB_CREATE_FAIL = new ErrorCode(1_021_011_001, "任务初始化失败");
    ErrorCode JOB_HAS_CREATED = new ErrorCode(1_021_011_002, "任务已经创建");
    ErrorCode UNABLE_TO_CREATE_TASK = new ErrorCode(1_021_011_003, "巡检计划已关闭，无法创建巡检任务");
    ErrorCode TASK_FAILED_DELETED = new ErrorCode(1_021_011_004, "任务删除失败");
    // ========== 设备与检查项关联 1_021_012_000 ==========
    ErrorCode INSPECTION_DEVICE_ENTRY_NOT_EXISTS = new ErrorCode(1_021_012_000, "设备与检查项关联不存在");

    // ========== 巡检/点检记录 1_021_013_000 ==========
    ErrorCode INSPECTION_RECORD_NOT_EXISTS = new ErrorCode(1_021_013_000, "巡检/点检记录不存在");
    // ========== 巡检/点检记录明细 1_021_014_000 ==========
    ErrorCode INSPECTION_RECORD_INFO_NOT_EXISTS = new ErrorCode(1_021_014_000, "巡检/点检记录明细不存在");
    // ========== 设备保养项目 1_021_015_000 ==========
    ErrorCode MAINTENANCE_PLAN_ENTRY_NOT_EXISTS = new ErrorCode(1_021_015_000, "设备保养项目不存在");
    // ========== 设备与保养项关联 1_021_016_000 ==========
    ErrorCode MAINTENANCE_DEVICE_ENTRY_NOT_EXISTS = new ErrorCode(1_021_016_000, "设备与保养项关联不存在");


}

